#! /bin/sh
# config script for roadmap

set -e

. /usr/share/debconf/confmodule

indexdir=/var/lib/roadmap

if [ configure = "$1" ] && [ ! -f "$indexdir/usdir.rdm" ] ; then
    # Ask if the map index file should be downloaded
    db_input medium roadmap/download_index || [ $? -eq 30 ]
    db_go
fi
